package kr.hkit.powerjava.chapter12;


public class AnonymousTest {
	public static void main(String[] args) {
		RemoteControl rc = new RemoteControl() {
			
			@Override
			public void turnOn() {
				System.out.println("켜짐");
				
			}
			
			@Override
			public void turnOff() {
				System.out.println("꺼짐");
				
			}
		};
		
		rc.turnOn();
		rc.turnOff();
		
	}
}
